package com.yami.shop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yami.shop.bean.model.CheckAccount;
import com.yami.shop.bean.model.Member;
import com.yami.shop.bean.model.ShopMember;
import com.yami.shop.common.util.PageAdapter;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MemberMapper extends BaseMapper<ShopMember> {
    List<ShopMember> pagebyMember(@Param("adapter") PageAdapter adapter, @Param("shopMember") ShopMember shopMember);

    Long countMember(@Param("shopMember") ShopMember shopMember);

    void addMember(@Param("member") Member member);

    ShopMember getMember(@Param("memberId")Long memberId );

    Member getRepeatMember(@Param("member") Member member);

    void updateStatus(@Param("memberId")Long memberId);

    void restoreMember(@Param("memberId")Long memberId);
}
